package com.example.zk2_lx.register;

import androidx.lifecycle.MutableLiveData;

import com.example.zk2_lx.mvvm_base.BaseViewModel;

public class RegisterViewMolde extends BaseViewModel<RegisterRepo> {
    @Override
    protected RegisterRepo createRepo() {
        return new RegisterRepo();
    }
    public MutableLiveData<String> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void register(String name,String pwd){
        repo.register(name,pwd,success,fail);
    }
}
